﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Services;

namespace ActionServices
{
    public interface IStudent_ResultDetailActionService:BaseActionService
    {
        long Save(object _model);
        IList<CoreData.Student_Result> GetListByLINQ(Func<CoreData.Student_Result, Boolean> _where);
        CoreData.Student_Result GetOneByLINQ(Func<CoreData.Student_Result, Boolean> _where);
        bool Delete(object _model);
    }

    public partial class Student_ResultDetailActionService : IStudent_ResultDetailActionService
    {
        Student_ResultService Service;

        public Student_ResultDetailActionService()
        {
            Service = new Student_ResultService();
        }

        #region Main Method

        public virtual long Save(object _model)
        {
            return Service.Save(_model);
        }

        public virtual object GetByID(long _id)
        {
            return Service.GetByIDResultDetail(_id);
        }

        public virtual object GetList()
        {
            return Service.GetListResultDetail();
        }

        public virtual IList<CoreData.Student_Result> GetListByLINQ(Func<CoreData.Student_Result, Boolean> _where)
        {
            return Service.GetListByLINQ(_where);
        }

        public virtual CoreData.Student_Result GetOneByLINQ(Func<CoreData.Student_Result, Boolean> _where)
        {
            return Service.GetOneByLINQ(_where);
        }

        public virtual object GetList(string _searchstring)
        {
            return Service.GetListResultDetail(_searchstring);
        }

        public virtual bool Delete(object _model)
        {
            return Service.Delete(_model);
        }

        #endregion


        #region Other Method
        #endregion

    }
}
